package designpatterns.decoratorpattern;

public class DecoratorTest {
    public static void main(String[] args) {
        Flyable bird1 = new TimeFlyDecorator(new Bird());
        bird1.fly();
        System.out.println("-------------------------");
        Flyable bird2 = new ActionFlyDecorator(new Bird());
        bird2.fly();
    }
}
